<template>
  <div style="height:100vh">
    <van-nav-bar title="洛克健身" left-text="返回" left-arrow @click-left="onClickLeft" />
    <div class="box-container">
      <div class="register-bj"></div>
      <van-tabs style="margin-bottom: 100px">
        <van-tab title="登录">
          <login></login>
        </van-tab>
        <van-tab title="注册">
          <register></register>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
import Login from '../../components/Login.vue'
import Register from '../../components/Register.vue'
export default {
  components: {
    Register,
    Login
  },
  name: 'User',

  data() {
    return {}
  },

  methods: {
    onClickLeft() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="less" scoped>
.register-bj {
  width: 100%;
  height: 200px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: url(../../assets/BinMd-img/login.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.box-container {
  // padding: 0px 0px 100px;
  margin: 16px auto;
  width: 344px;
  // height: 590px;
  border-radius: 10px;
  // background-color: #fff;
}
</style>
